/*
 * @Author: 彭林
 * @Date: 2021-07-14 13:34:10
 * @LastEditTime: 2021-07-14 14:32:29
 * @LastEditors: 彭林
 * @Description:
 * @FilePath: /saas-app/boot/task.go
 */
package boot

import (
	"saas-app/app/service"

	"github.com/gogf/gf/os/gcron"
	"github.com/gogf/gf/os/glog"
)

func InitializeTask() {
	gcron.Add("20,40 * * * * *", func() {
		service.FiveDataService().Batch()
		glog.Println("Every second")
	})
}
